<template>
    <div style="background-color: aquamarine;">
        我是全局组件
        <button @dblclick="num++">{{ num }}</button>
    </div>
</template>

<script setup>
    import {ref} from "vue"
    const num=ref(1)
</script>